package com.byb.server.service.dto;


import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
import javax.persistence.Lob;

/**
 * A DTO for the EnsureIndex2 entity.
 */
public class EnsureIndex2DTO implements Serializable {

    private Long id;

    private String index2;

    private String index2Info;

    @NotNull
    private String score;

    @Lob
    private String index2Description;

    private Long productId;

    private Long ensureScopeId;

    private String ensureScopeIndex1;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIndex2() {
        return index2;
    }

    public void setIndex2(String index2) {
        this.index2 = index2;
    }

    public String getIndex2Info() {
        return index2Info;
    }

    public void setIndex2Info(String index2Info) {
        this.index2Info = index2Info;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getIndex2Description() {
        return index2Description;
    }

    public void setIndex2Description(String index2Description) {
        this.index2Description = index2Description;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getEnsureScopeId() {
        return ensureScopeId;
    }

    public void setEnsureScopeId(Long ensureScopeId) {
        this.ensureScopeId = ensureScopeId;
    }

    public String getEnsureScopeIndex1() {
        return ensureScopeIndex1;
    }

    public void setEnsureScopeIndex1(String ensureScopeIndex1) {
        this.ensureScopeIndex1 = ensureScopeIndex1;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        EnsureIndex2DTO ensureIndex2DTO = (EnsureIndex2DTO) o;
        if(ensureIndex2DTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), ensureIndex2DTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "EnsureIndex2DTO{" +
            "id=" + getId() +
            ", index2='" + getIndex2() + "'" +
            ", index2Info='" + getIndex2Info() + "'" +
            ", score='" + getScore() + "'" +
            ", index2Description='" + getIndex2Description() + "'" +
            "}";
    }
}
